﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManagerQuestionInfo.aspx.cs"
    Inherits="sysadmin_QuestionManager_ManagerQuestionInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理题库</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lbl_InfoTitle" runat="server" Text="试题管理"></asp:Label>
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
                <th>
                    <asp:Label ID="lab_QuestionContent" runat="server" Text="试题内容"></asp:Label></th>
                <td>
                    <asp:TextBox ID="txtQuestionContent" runat="server" Width="120px"></asp:TextBox></td>
                <th>
                    <asp:Label ID="lab_QuestonType" runat="server" Text="题目类型"></asp:Label></th>
                <td colspan="3">
                    <asp:DropDownList ID="ddlQuestionTypeList" runat="server" AppendDataBoundItems="True"
                        Width="120px">
                        <asp:ListItem Value="-1">请选择</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td colspan="6" class="tree-bottom-bg">
                    <asp:Button ID="btnSearch" runat="server" CssClass="inputBotton2" Text=" 搜 索 " OnClick="btnSearch_Click" />&nbsp;
                    <asp:Button ID="btn_AddQuestion" runat="server" CssClass="inputBotton2" Text=" 添加试题 "
                        OnClick="btn_AddQuestion_Click" /></td>
            </tr>
        </table>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="btnbg" width="100%">
            <tr>
                <td>
                    <asp:Button ID="btn_AllCheck" runat="server" CssClass="inputBotton2" OnClick="btn_AllCheck_Click"
                        Text="全 选" />
                    <asp:Button ID="btn_UnCheck" runat="server" CssClass="inputBotton2" OnClick="btn_UnCheck_Click"
                        Text="反 选" />
                    <asp:Button ID="btn_DelCheck" runat="server" CssClass="inputBotton2" OnClick="btn_DelCheck_Click"
                        Text="删除选中试题" />&nbsp;
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvQuestionList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvQuestionList_RowCommand"
            OnRowDataBound="gvQuestionList_RowDataBound" GridLines="None" BorderWidth="0px"
            CssClass="mainList" Width="100%">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="Chbox_Check" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Index" HeaderText="试题编号" />
                <asp:BoundField DataField="QuestionID" HeaderText="试题ID" />
                <asp:TemplateField HeaderText="试题内容">
                    <ItemTemplate>
                    
                        <asp:Label ID="Label1" runat="server"><%#Eval("QuestionContent") %></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CourseName" HeaderText="所属课程" Visible="False" />
                <asp:BoundField DataField="FKQuestionTypeID" HeaderText="试题类型" />
                <asp:BoundField DataField="QuestionDefaultScore" HeaderText="试题分数" Visible="False" />
                <asp:BoundField DataField="QuestionDiffculty" HeaderText="试题难度" Visible="False" />
                <asp:BoundField DataField="QuestionText" HeaderText="正确答案" Visible="False" />
                <asp:BoundField DataField="QuestionState" HeaderText="启用状态" Visible="False" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="ibtnDelete" runat="server" CommandArgument='<%#Eval("url") %>'
                           CommandName="mydelete">删除</asp:LinkButton>
                            &nbsp;&nbsp;
                             <asp:LinkButton ID="ibtnEditor" runat="server" CommandArgument='<%#Eval("url") %>'
                            CommandName="myeditor">编辑</asp:LinkButton>

                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <%=GetLanageValueByKey("msg_Page_Nodate", PowerCreator.LMS.Language.LanagetItemType.Page)%>
            </EmptyDataTemplate>
        </asp:GridView>
        &nbsp;
        <table width="699" border="0" cellspacing="0" cellpadding="0"  align="center">
            <tr>
                <td >
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 12px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
        <br />
    </form>
</body>
</html>
